home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / cbibcode.arc / GRPHRMSG.C < prev    next >
Encoding:
C/C++ Source or Header  |  1991-08-05  |  306 b   |  12 lines

  1. /*  grapherrormsg  */
  2. #include <stdio.h>
  3. #include <graphics.h>
  4.  
  5. main()
  6. {
  7.     int graphdriver = DETECT,graphmode,errorcode;
  8. /*  Generate an error by calling initgraph with wrong pathname
  9.     for device drivers  */
  10.     initgraph(&graphdriver,&graphmode,"c:\\");
  11.     printf(grapherrormsg(graphresult()));
  12. }